Skip to content

Fix ConfigLoader bytesSize failing to parse value ending by 6#2521

Merged
an-tao merged 1 commit into
drogonframework:masterfrom
Lectem:fix/bytesSize-parsing
May 17, 2026
Merged

Fix ConfigLoader bytesSize failing to parse value ending by 6#2521
an-tao merged 1 commit into
drogonframework:masterfrom
Lectem:fix/bytesSize-parsing

Conversation

@Lectem
Copy link
Copy Markdown
Contributor

@Lectem Lectem commented May 16, 2026

Any digit-only byte size whose last character is '6' causes the server to refuse to start with "Error format of client_max_body_size". So "client_max_body_size": "16" or "60000006" or "1048576" (= 1 MiB literal) all break Drogon startup.

Easy fix by including the case '6': line

@an-tao an-tao merged commit 41d227e into drogonframework:master May 17, 2026
87 of 92 checks passed
@Lectem Lectem deleted the fix/bytesSize-parsing branch May 17, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants